<include file="Index:header" />
<import file="Common.dateInput.jquery#date_input#min" />
<import type="css" file="Common.dateInput.date_input" />
<script type="text/javascript" >
$($.date_input.initialize);
</script>
<div id="content" class="container_16 clearfix">
	<div class="btn-toolbar" >
		<a href="{:U('Admin/Member/index')}" class="btn">成员管理</a>
		<a href="{:U('Admin/Member/edit')}" class="btn  btn-primary"><i class="icon-plus"></i>添加成员</a>
	</div>
	<div class="well">

			<ul class="nav nav-tabs">
				<li class="active"><a href="{:U('Admin/Member/edit',array('id'=>$data['uid']))}">基本资料</a></li>
				<li><a href="{:U('Admin/Member/editPhoto',array('id'=>$data['uid']))}">相册</a></li>
				<li><a href="{:U('Admin/Member/editVideo')}">成员视频</a></li>
			</ul>

		<form method="post" action="{:U('Admin/Member/edit',array('id'=>$data['uid']))}" id="newsform">
			<ul>
				<li>
					<label>头像:<small>成员头像</small></label>
					<img src="__PUBLIC__/Common/Img/default-avatar.gif" class="avatar"/>
					<input type="hidden" name="avatar" value="{$data.avatar}"/>
					<span id="uploadAvatar"></span>
				</li>
				<li>
					<label>中文名:</label>
					<input type="text" name="name" value="{$data.name}" />
				</li>
				<li>
					<label>英文名:</label> 
					<input type="text" name="en_name" value="{$data.en_name}"/>
				</li>
				<li>
					<label>性别:<small>成员性别</small></label>
					<label><input type="radio" name="gender" value="1" <if condition="$data.gender eq '1'"> checked="checked" </if> /> 男 </label>
					<label><input type="radio" name="gender" value="0" <if condition="$data.gender eq '0'"> checked="checked" </if> /> 女 </label>
				</li>
				<li>
					<label>出生日期:<small>选择出生日期</small></label>
					<input type="text" name="birthdate" id="date"  class="date_input" />
				</li>
				<li>
					<label>体重:<small>选填</small></label>
					<input type="text" name="weight" />
				</li>
				<li>
					<label>成员角色:</label> <select name="role">
						<volist name="roles" id="role">
							<option value="{$key}">{$role}</option>
						</volist>
					</select>
					</li>
				<li>
					<label>会员简介:<small>会员介绍或经历</small></label>
					<textarea name="description" class="editor">
					{$data.description}
					</textarea>					
				</li>
				<li>
					<input type="submit" class="btn" value="保存"/>
				</li>
			</ul>

		</form>
	</div>
</div>
		
<div id="foot">
			<a href="#">Contact Me</a>
</div>
<include file="Public:editor" />

<import file="Common.uploadify.jquery#uploadify#min" />
<script>
$(function() {
	$("#uploadAvatar").uploadify({
		'height'        : 30,
		'buttonText'    : '上传',
		'swf'           : '__PUBLIC__/Common/uploadify/uploadify.swf',
		'uploader'      : "{:U('Home/Public/upload')}",
        'onQueueComplete' : function(file, bytesUploaded, bytesTotal, totalBytesUploaded, totalBytesTotal) {
           
        },
        'onUploadStart' : function(file) {
           
        },
        'onUploadSuccess' : function(file, data, response) {
           
        }
	});
});
</script>
<include file="Index:footer" />